package com.youlai.boot.factory.model.entity;

import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 月度结算单实体对象
 *
 * @author youlaitech
 * @since 2025-07-13 00:16
 */
@Getter
@Setter
@TableName("monthly_settlements")
public class MonthlySettlements extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 结算单编号(如JS202307001)
     */
    private String settlementNumber;
    /**
     * 客户ID
     */
    private Integer customerId;
    /**
     * 结算单名称
     */
    private String settlementName;
    /**
     * 结算年月(YYYY-MM)
     */
    private String yearMonth;
    /**
     * 结算开始日期
     */
    private LocalDate startDate;
    /**
     * 结算结束日期
     */
    private LocalDate endDate;
    /**
     * 总数量
     */
    private Integer totalQuantity;
    /**
     * 总金额
     */
    private BigDecimal totalAmount;
    /**
     * 状态:0-草稿 1-已确认 2-已付款
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建人ID
     */
    private Long createBy;
    /**
     * 修改人ID
     */
    private Long updateBy;
}
